package com.cwn.wizbank.scoket;
 
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.identity.GetGeneratedKeysDelegate;
import org.hibernate.dialect.identity.IdentityColumnSupportImpl;
import org.hibernate.id.PostInsertIdentityPersister;
 
 
public class DM8IdentityColumnSupport extends IdentityColumnSupportImpl {
    @Override
    public boolean supportsIdentityColumns() {
        return true;
    }
 
    @Override
    public boolean supportsInsertSelectIdentity() {
        return true;
    }
 
    @Override
    public String getIdentityColumnString(int type) {
        return "";
    }
 
    @Override
    public GetGeneratedKeysDelegate buildGetGeneratedKeysDelegate(
        PostInsertIdentityPersister persister, Dialect dialect) {
        return new DM8GetGeneratedKeysDelegate( persister, dialect );
    }
 
    @Override
    public String getIdentityInsertString() {
        return "default";
    }
 
}
————————————————

                            版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。
                        
原文链接：https://blog.csdn.net/li18310727696/article/details/125088440